<?php
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="main">
 *
 * @package WordPress
 * @subpackage arena_softech
 * @since Arena Softech 1.0
 */
?>
<?php
	global $arena_softech;
	$options = get_option('inove_options');
	
	if (is_home()) {
		$home_menu = 'current_page_item current-menu-item';
	} else {
		$home_menu = 'page_item current-menu-item';
		
		//menu-item menu-item-type-post_type current-menu-item page_item page-item-167 current_page_item menu-item-170
	}
	if($options['feed'] && $options['feed_url']) {
		if (substr(strtoupper($options['feed_url']), 0, 7) == 'HTTP://') {
			$feed = $options['feed_url'];
		} else {
			$feed = 'http://' . $options['feed_url'];
		}
	} else {
		$feed = get_bloginfo('rss2_url');
	}
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php
	/*
	 * Print the <title> tag based on what is being viewed.
	 */
	global $page, $paged;

	wp_title( '|', true, 'right' );

	// Add the blog name.
	bloginfo( 'name' );

	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " | $site_description";

	// Add a page number if necessary:
	if ( $paged >= 2 || $page >= 2 )
		echo ' | ' . sprintf( __( 'Page %s', 'arena_softech' ), max( $paged, $page ) );

	?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<meta name="robots" content="index,follow" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="stylesheet" type="text/css" media="all" href="<?php  echo bloginfo( 'template_directory' ); ?>/prettyPhoto.css" />
<link rel="stylesheet" type="text/css" media="all" href="<?php  echo bloginfo( 'template_directory' ); ?>/grid.css" />
<link rel="stylesheet" type="text/css" media="all" href="<?php  echo bloginfo( 'template_directory' ); ?>/wpp.css" />
<script type='text/javascript' src='<?php echo bloginfo( 'template_directory' ); ?>/js/jquery-1.4.4.min.js'></script>
<script type='text/javascript' src='<?php  echo bloginfo( 'template_directory' ); ?>/js/superfish.js'></script>
<script type='text/javascript' src='<?php  echo bloginfo( 'template_directory' ); ?>/js/jquery.prettyPhoto.js'></script>
<script type='text/javascript' src='<?php echo bloginfo( 'template_directory' ); ?>/js/jquery.faded.js'></script>
<script type='text/javascript' src='<?php echo bloginfo( 'template_directory' ); ?>/js/jquery.loader.js'></script>
<script type='text/javascript' src='<?php echo bloginfo( 'template_directory' ); ?>/js/tabs.js'></script>

<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
	/* We add some JavaScript to pages with the comment form
	 * to support sites with threaded comments (when in use).
	 */
	if ( is_singular() && get_option( 'thread_comments' ) )
		wp_enqueue_script( 'comment-reply' );

	/* Always have wp_head() just before the closing </head>
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to add elements to <head> such
	 * as styles, scripts, and meta tags.
	 */
	wp_head();
?>
 <style type="text/css">
  	
		.box-1, .box-2, .box-3, .box-4, .widget, #wpp-3 li, nav.oldernewer, #post-author, .wpcf7-form input, .wpcf7-form textarea {
			behavior:url(http://cms.template-help.com/wordpress_32983/wp-content/themes/theme1185/PIE.php)
		}
		
  </style>
  <script type="text/javascript">
  	// initialise plugins
		jQuery(function(){
			// main navigation init
			jQuery('ul.sf-menu').superfish({
				animation:   {opacity:'show', height:'show'}
			});
			
			// prettyphoto init
			jQuery("#gallery .portfolio a[rel^='prettyPhoto']").prettyPhoto({
				animationSpeed:'slow',
				theme:'facebook',
				slideshow:false,
				autoplay_slideshow: false,
				show_title: true,
				overlay_gallery: false
			});
			
			//faded slider init
			jQuery("#faded").faded({
				speed: 500,
				crossfade: true,
				bigtarget: false,
				loading: true,
				autoplay: 5000,
				autorestart: 8000,
				autopagination: true
			});
			
		});
  </script>
</head>
<body <?php body_class(); ?>>

<div id="main"><!-- this encompasses the entire Web site -->
	<header>
		<div class="container">
			<div id="header-sidebar">
				<div id="linkcat-13" class="widget"><h3>Links</h3>
					<ul class='xoxo blogroll'>
						<?php wp_meta(); ?>
						<?php wp_register(); ?>
						<li class="last-item"><?php wp_loginout(); ?></li>
					</ul>
				</div>
			</div>
			<div class="logo">
				<h1 id="logo"><a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
				<p class="description"><?php //bloginfo('description'); ?></p>
			</div>
			
			<nav class="primary">
				
        		<ul id="topnav" class="sf-menu">
					<li class="menu-item <?php if ( is_home() ) { ?> current_page_item <?php } ?>"><a href="<?php echo get_option('home'); ?>/"><?php _e('Home', 'default'); ?></a></li>
					<?php //arena_softech_globalnav() ?>
					<?php
						if($options['menu_type'] == 'categories') {
							wp_list_categories('title_li=0&orderby=name&show_count=0');
						} else {
							wp_list_pages('title_li=0&sort_column=menu_order');
						}
					?>
				</ul>
		
					<!--<ul id="topnav" class="sf-menu">
					<li id="menu-item-171" class="menu-item menu-item-type-custom current-menu-item current_page_item menu-item-home menu-item-171"><a href="http://cms.template-help.com/wordpress_32983/">Home</a></li>
					<li id="menu-item-7" class="menu-item menu-item-type-post_type menu-item-7"><a href="http://cms.template-help.com/wordpress_32983/?page_id=2">About</a></li>
					<li id="menu-item-32" class="menu-item menu-item-type-post_type menu-item-32"><a href="http://cms.template-help.com/wordpress_32983/?page_id=30">Services</a>
					<ul class="sub-menu">
						<li id="menu-item-192" class="menu-item menu-item-type-post_type menu-item-192"><a href="http://cms.template-help.com/wordpress_32983/?page_id=174">Employment &#038; skills</a></li>
						<li id="menu-item-191" class="menu-item menu-item-type-post_type menu-item-191"><a href="http://cms.template-help.com/wordpress_32983/?page_id=177">Environment &#038; efficiency</a></li>
						<li id="menu-item-190" class="menu-item menu-item-type-post_type menu-item-190"><a href="http://cms.template-help.com/wordpress_32983/?page_id=180">Exploit your ideas</a></li>
						<li id="menu-item-189" class="menu-item menu-item-type-post_type menu-item-189"><a href="http://cms.template-help.com/wordpress_32983/?page_id=182">Finance and grants</a></li>
					</ul>
					</li>
					<li id="menu-item-77" class="menu-item menu-item-type-post_type menu-item-77"><a href="http://cms.template-help.com/wordpress_32983/?page_id=72">Products</a>
					<ul class="sub-menu">
						<li id="menu-item-95" class="menu-item menu-item-type-post_type menu-item-95"><a href="http://cms.template-help.com/wordpress_32983/?page_id=85">Portfolio cat 1</a></li>
						<li id="menu-item-649" class="menu-item menu-item-type-post_type menu-item-649"><a href="http://cms.template-help.com/wordpress_32983/?page_id=647">Portfolio cat 2</a></li>
						<li id="menu-item-652" class="menu-item menu-item-type-post_type menu-item-652"><a href="http://cms.template-help.com/wordpress_32983/?page_id=650">Portfolio cat 3</a></li>
					</ul>
					</li>
					<li id="menu-item-170" class="menu-item menu-item-type-post_type menu-item-170"><a href="http://cms.template-help.com/wordpress_32983/?page_id=167">FAQs</a></li>
					<li id="menu-item-59" class="menu-item menu-item-type-post_type menu-item-59"><a href="http://cms.template-help.com/wordpress_32983/?page_id=57">Contact us</a></li>
					
					
				</ul>		
	-->
				
			</nav><!--.primary-->

			<div id="top-search">
					<form method="get" action="http://cms.template-help.com/wordpress_32983/" id="searchform">
						<input type="text" name="s"><input type="submit" value="Search">
					</form>
			</div>
		</div><!--.container-->
</header>
